//
//  DMApplyAppointmentModel.m
//  CQKuaiYi
//
//  Created by ling on 17/1/9.
//  Copyright © 2017年 Mr.Cannon. All rights reserved.
//

#import "DMApplyAppointmentModel.h"
#import "DMNetworkTool.h"

@implementation DMApplyAppointmentModel

+ (void)getDoctorListDataWithURLString:(NSString *)URLString andParameters:(NSDictionary *)parameters andSuccessBlock:(void (^)(NSArray *))successBlock {
    
    [[DMNetworkTool shareDMNetwork] postURL:URLString parameter:parameters completion:^(id response) {
        if (response == nil) {
            NSLog(@"xxxx");
        } else {
            NSDictionary *json = response;
            NSArray *arr = json[@"data"];
            NSArray *newslist = [NSArray yy_modelArrayWithClass:[DMApplyAppointmentModel class] json:arr];
            successBlock(newslist);
        }
    }];
}

@end
